#!/bin/bash

echo ' \
      DROP DATABASE IF EXISTS `nacos`; \
      CREATE DATABASE `nacos` CHARACTER SET "utf8mb4" COLLATE "utf8mb4_general_ci"; \
      use nacos; \
      source {{nacos_path}}conf/nacos-mysql.sql; \
    ' | mysql -uroot -p"{{ nacos_mysql_password }}" --connect-expired-password
